function removeCache()
{
document.DSWC_IEG.DeleteCache();
setTimeout("removeCache()", 20000);
}

function disableselect(e)
{ 
return false;
} 

function reEnable()
{ 
return true;
} 


if (navigator.appName != "Netscape") 
{
document.onselectstart=new Function ("return false");
document.oncontextmenu=new Function ("return false");
document.ondragstart=new Function ("return false");
}
else
{
if (window.sidebar)
{
document.onmousedown=disableselect;
document.onclick=reEnable;
}
} 

function StartGuard(right)
{
if (navigator.appName != "Netscape")
{
var nav;

nav = window.navigator.userAgent;

//alert(nav);

// NT 3,4 일경우 그냥 통과
if ((nav.indexOf("NT)") >= 0) || (nav.indexOf("NT 4") >= 0) || (nav.indexOf("NT 3") >= 0))
{
return;
}
if (typeof(document.DSWC_IEG.ErrMsg) != "undefined")
{ 
document.DSWC_IEG.LicenseString = "ZaoQdxa4tl79dGwTOu95OBQh4SV1x1D4pUjB6YFfRGU9Tf6rH/npZknKgFPOX0vYsBq9sh1wyaZprnZ6Q6FiPpLX+kAHczLmfzhxOcamDCtwLUaUrvRlQ881e8B4vmJ1P5o5oP6KCwfQ1Erv0T6njLmOlIHyz5jMHR6Y3E2UkAuAn6GSiCEKHKrCSGYveRq5VBdOmAgYAHcEOeJRZcPG/w==";
document.DSWC_IEG.Start(right);
document.DSWC_CP.ClearList();
document.DSWC_CP.AddList("","IrfanView","i_view32");
document.DSWC_CP.AddList("SnagIt","SnagIt5UI","");
document.DSWC_CP.AddList("Configure Screenshot Utility","TConfigForm","");
document.DSWC_CP.AddList("ScreenGet","#32770","");
document.DSWC_CP.AddList("Mr. Captor","MrCaptorClass","");
document.DSWC_CP.AddList("Capturex","TMainfrm","");
document.DSWC_CP.AddList("Capture Professional v5","CSWORX-CP5","");
document.DSWC_CP.AddList("ScreenSharePro","TScreenShareDlg","");
document.DSWC_CP.AddList("ScreenSharePro","TEditCenterDlg","");
document.DSWC_CP.AddList("Easy Screen Capture 1.22","TfrmMain","");
document.DSWC_CP.AddList("HardCopy Pro","#32770","");
document.DSWC_CP.AddList("CaptureEze Pro - What would you like to do?","CzeProFrameCls","");
document.DSWC_CP.AddList("20/20 v2.2","TMainForm","");
document.DSWC_CP.AddList("SD Capture","#32770","");
document.DSWC_CP.AddList("HotShot","TfrmHotShot","");
document.DSWC_CP.AddList("Grabbit 2","#32770","");
document.DSWC_CP.AddList("ClipMate [Short-Term]","TfrmCM","");

document.DSWC_CP.StartAction();
removeCache();
}
}
}

function ObjectWrite()
{
var nav;

nav = window.navigator.userAgent;

// NT 3,4 일경우 그냥 통과
if ((nav.indexOf("NT)") >= 0) || (nav.indexOf("NT 4") >= 0) || (nav.indexOf("NT 3") >= 0))
{
return;
}

document.write("<object id=DSWC_IEG codeBase='/jlandsoft/DSWC.cab#version=1,0,1,4'" +
" height=0 width=0 classid=CLSID:196300A5-09A2-4C9D-9B67-3A1F5168A025 name=DSWC_IEG>" +
" </object>" +
" <object id=DSWC_CP " +
" codeBase='../DSWC-5253.cab#version=1,0,1,4'" +
" height=0 width=0 classid=CLSID:25A4A1F7-309C-4C0E-9603-4C885EC05E84 name=DSWC_CP>" +
" </object>");
}
/*
var check_url = false;
var home_url="http://ekp.hdel.co.kr";
*/
//허가 referer
/*var allow_url = [
'http://ekp.hdel.co.kr',
'http://localhost:8080',
'http://localhost:8080/test.jsp',
'http://compliance.hdel.co.kr',
'http://compliance.hdel.co.kr/test.jsp',
'http://localhost:8080/main/login.hcom?id=6&dept=ECG&position=사원&name=이윤아&email=steve@ecglobal.co.kr',
];*/

/*var len = allow_url.length;
for(var i=0; i<len; i++) {
 if(document.referrer.indexOf(allow_url[i])!=-1) {
	 				//이 하위주소옆으로 다포함	 indexOf("http://compliance.hdel.co.kr");
	 			//	 indexOf("http://localhost:8080/")
	 check_url = true;
 }
}

if(check_url===false) {
 alert("비정상적인 접근으로 확인되어 초기화면으로 돌아갑니다.");
 window.location=home_url;
}*/


